package org.example.java.model;

//定义整个业务系统的常量
public class Constant {
    //********mongodb中的表名********
    public static final String MONGO_DATABASE = "recommender";

    //    电影表名
    public static final String MONGO_MOVIE_COLLECTION = "Movie";
    //    电影评分表名
    public static final String MONGO_RATING_COLLECTION = "Rating";
    //    电影标签表名
    public static final String MONGO_TAG_COLLECTION = "Tag";
    //    用户表
    public static final String MONGO_USER_COLLECTION = "User";

    //    电影的平均评分表
    public static final String MONGO_AVERAGE_MOVIES = "AverageMovies";
    //    电影类别Top10表
    public static final String MONGO_GENRES_TOP_MOVIES = "GenresTopMovies";
    //    优质电影表
    public static final String MONGO_RATE_MORE_MOVIES = "RateMoreMovies";
    //    近期热门电影表
    public static final String MONGO_RATE_MORE_RECENTLY_MOVIES = "RateMoreRecentlyMovies";

    //    用户的推荐矩阵表
    public static final String MONGO_USER_RECS_COLLECTION = "UserRecs";
    //    电影的相似度矩阵表
    public static final String MONGO_MOVIE_RECS_COLLECTION = "MovieRecs";

    //    实时推荐电影表
    public static final String MONGO_STREAM_RECS_COLLECTION = "StreamRecs";


    //********Elastic Search********
    //    使用的index
    public static final String ES_INDEX = "recommender";
    //    使用的type
    public static final String ES_TYPE = "Movie";

    //********Redis********
    public static final int USER_RATING_QUEUE_SIZE = 20;

    //*********log日志********
    public static final String USER_RATING_LOG_PREFIX = "MOVIE_RATING_PREFIX:";

    //*********Driver Class********
    public static final String MONGO_DRIVER_CLASS = "com.mongodb.spark.sql";
    public static final String ES_DRIVER_CLASS = "org.elasticsearch.spark.sql";
}
